pub use sea_orm_migration::prelude::*;

mod m20220101_000001_create_table;
mod m20241216_114731_update_post;
mod m20250115_024658_create_dog;
mod m20250316_085548_create_spider_task_table;
mod m20250318_081753_article_table;
mod m20250318_082000_add_article_list_and_title_selector;
mod m20250318_082001_change_spider_task_status_to_integer;
mod m20250321_082001_create_executor_status;

pub struct Migrator;

#[async_trait::async_trait]
impl MigratorTrait for Migrator {
    fn migrations() -> Vec<Box<dyn MigrationTrait>> {
        vec![
            Box::new(m20220101_000001_create_table::Migration),
            Box::new(m20241216_114731_update_post::Migration),
            Box::new(m20250115_024658_create_dog::Migration),
            Box::new(m20250316_085548_create_spider_task_table::Migration),
            Box::new(m20250318_081753_article_table::Migration),
            Box::new(m20250318_082000_add_article_list_and_title_selector::Migration),
            Box::new(m20250318_082001_change_spider_task_status_to_integer::Migration),
            Box::new(m20250321_082001_create_executor_status::Migration),
        ]
    }
}
